<%--
  Created by IntelliJ IDEA.
  User: 15c
  Date: 2017/6/11
  Time: 22:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
  </script>
  <script>
    $(document).ready(function(){
      $("button").click(function(){
        $.getJSON("http://localhost:8081/findStudent",function(result){
          $.each(result.data, function(i, field){
            $("div").append(field + " ");
          });
        });
      });
    });
  </script>
</head>
<body>

<button>获取 JSON 数据</button>
<div></div>

</body>
</html>
